#ifndef __IO_DEFAULTFILESTREAM_H__
#define __IO_DEFAULTFILESTREAM_H__

#include "IFileStream.h"
#include <stdio.h>

class CDefaultFileStream : public IFileStream  
{
public:
	CDefaultFileStream(void);
public:
	~CDefaultFileStream(void);

	virtual size_t	_fread(void * _DstBuf,size_t _ElementSize, size_t _Count) ;
	virtual size_t	_fwrite(const void * _Str,size_t _Size, size_t _Count) ;
	virtual bool	_fopen(const char * _Filename, bool bRead) ;
	//now this _fopen is always return true, because we don't ues it ,we use 'encrpty' all the time.
	virtual bool	_fopen(const char * _FileData , int nSize,bool bRead) ;	
	virtual int		_fclose() ;
private:
	FILE *			m_pFile;		//file handler;
	bool m_bRead;
};
#endif //__IO_DEFAULTFILESTREAM_H__